<extend name="common" />
<block name="main">
<div class="bd api-detail">
    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title">上传签名算法</h3>
        </div>
        <div class="panel-body">
            <div class="alert alert-success">
                签名算法只支持php文件，格式如下(请使用UTF-8编码):
                <pre>{$signDemo|htmlentities}</pre><br>
                <b>注意：每个项目只能同时存在一个签名算法，如果多次提交，以管理员最后审核通过的算法为准!</b>
            </div>
            <form method="post" class="form-horizontal" action="signManage" data-ajax="false" data-validate="false" encType="multipart/form-data">
                <input type="hidden" name="pid" value="{$project_id}">
                <div class="form-group col-lg-4">
                    <input type="file" class="form-control" name="signFile" accept=".php,.txt"/>
                </div>
                <div class="form-group col-lg-4">
                    <input type="text" class="form-control" name="create_memo" placeholder="备注"/>
                </div>
                <div class="form-group col-lg-3">
                    <button type="submit" class="btn btn-danger btn-delproject">确认无误,上传</button>
                </div>
            </form>
        </div>
    </div>

    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title">当前签名算法</h3>
        </div>
        <div class="panel-body">
        <code style="padding:2px 0;">{$signContent}</code>
        </div>
    </div>
</div>
</block>